/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Behavioral.ChainOfResponsibily;

/**
 *
 * @author alumno
 */
public class EjecutivoDeCuenta implements IAprobador{
    private IAprobador next;
    
    public IAprobador getNext(){
        return next;
    }    
    
   public void solicitudPrestamo(int monto)
           {
       if (monto <= 10000)
           System.out.println("Lo manejo yo");
       else
           next.solicitudPrestamo(monto);
               
    }    
    
   public void setNext(IAprobador aprobador)
    {
        next = aprobador; 
    }
    }

